<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="MyTag" prefix="mytag"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Sender</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />

<link rel="stylesheet" type="text/css"
	href="<c:url value="/resources/style.css" />">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/resources/css/bootstrap.css" />">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/resources/css/style.css" />">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/resources/css/font-awesome.min.css" />">
</head>
<body>
	<a href="<c:url value="/sender/orderList" />">待接单</a> |
	<a href="<c:url value="/sender/myOrder" />">我的配送</a> |
	<a href="<c:url value="/sender/changeInformation" />">修改个人信息</a> |
	<a href="<c:url value="/sender/senderLogout" />">注销</a>
	<br>
	<br>

	<br>
	<br>
	<br>
	<br>
	<br>
	<br>
	<br>
	
	

<dir>

	<c:if test="${orderIng != null}">
		<h5 id="timer">
			配送中，当前已配送时长：
			<mytag:timeSending date="${orderIng.receiveTime}" />
		</h5>
		<!--<script language="javascript">
    			setInterval(refresh,1000);
    			function refresh(){
    				$.ajax({
    					   type: "GET",
    					   dataType:"text",
    					   url:'/sender/getTime',
    					   data: {
    						   courseBox : "true"
    					   },success: function(msg){
    					    
    					   }
    					  });
    			    }
    		</script>-->
		<div class="col-md-12 column" style="width: 100%; text-align: center">
			<div style="width: 100%; text-align: center">
				<table border="1" style="width: 100%; text-align: center">
					<tr style="width: 100%; text-align: center">
						<th>运单号</th>
						<th>接单地</th>
						<th>接单地联系电话</th>
						<th>目的地</th>
						<th>目的地联系电话</th>
						<th>费用</th>
						<th>接单时间</th>
						<th>操作</th>
					</tr>
					<tr style="width: 100%; text-align: center">
						<td>${orderIng.orderId}</td>
						<td>${orderIng.receiveAddress}</td>
						<td>${orderIng.receivePhone}</td>
						<td>${orderIng.deliverAddress}</td>
						<td>${orderIng.deliverPhone}</td>
						<td>${orderIng.cost}</td>
						<td><fmt:formatDate value="${orderIng.receiveTime}"
								pattern="yyyy-MM-dd HH:mm:ss" /></td>
						<td><a
							href="<c:url value="/sender/finish/${orderIng.orderId}" />">完成订单</a></td>
					</tr>
				</table>
			</div>
		</div>
	</c:if>
	<div class="col-md-12 column">
		<c:if test="${orderIng == null}">
				暂无订单在派送中
			</c:if>
	</div>
</dir><br/><br/>

</body>
</html>